﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class APP数组 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       // TextBox1.Attributes.Add("style", "display:none;");
    }
    protected void suzu()
    {
        //包含6个元素的一维整数数组; 
        int[] mf1 = new int[6]; //注意初始化数组的范围,或者指定初值; 
        //包含6个元素的一维整数数组，初值1，2，3，4，5，6 
        int[] mf2 = new int[6] { 1, 2, 3, 4, 5, 6 };
        //一维字符串数组,如果提供了初始值设定项，则还可以省略 new 运算符 
        string[] mf3 ={ "c", "c++", "c#" };
        //一维对象数组 
        Object[] mf4 = new Object[5] { 26, 27, 28, 29, 30 };
        //二维整数数组，初值mf5[0,0]=1,mf5[0,1]=2,mf5[1,0]=3,mf5[1,1]=4 
        int[,] mf5 = new int[,] { { 1, 2 }, { 3, 4 } };
        //6*6的二维整型数组 
    }

}
